package org.jeecg.modules.logistics.manage.wljd_info.controller;

import org.apache.catalina.LifecycleState;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import lombok.extern.slf4j.Slf4j;

import org.jeecg.modules.logistics.manage.sj_info.entity.SjInfo;
import org.jeecg.modules.logistics.manage.sj_info.service.ISjInfoService;

import org.jeecg.modules.logistics.manage.wljd_info.entity.WljdInfo;
import org.jeecg.modules.logistics.manage.wljd_info.service.IWljdInfoService;
import org.jeecg.modules.logistics.table.cl.entity.Cl;
import org.jeecg.modules.logistics.table.wljd.entity.Wljd;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 物流接单信息
 * @Author: 唐小尊
 * @Date: 2019-11-21
 * @Version: V1.0
 */
@Slf4j
@Api(tags = "物流接单信息")
@RestController
@RequestMapping("/my/wljdInfo")
public class WljdInfoController {
    @Autowired
    private IWljdInfoService wljdInfoService;

    /**
     * 得到所有的物流接单信息
     * @return
     */
    @AutoLog(value = "得到所有的物流接单信息")
    @ApiOperation(value = "得到所有的物流接单信息", notes = "得到所有的物流接单信息")
    @GetMapping(value = "/getAllWljdInfo")
    public Result<List<WljdInfo>> getAllWljdInfo() {
        Result<List<WljdInfo>> result = new Result<List<WljdInfo>>();
        List<WljdInfo> wljdList = wljdInfoService.getAllWljd();
        result.setResult(wljdList);
        result.success("查找成功！");
        return result;
    }
}
